import request from '@/utils/request'

//分页查询研学活动
export function getList(params) {
    return request({
      url: '/mgrService/mgrResearch/queryResearchActivityByPage',
      method: 'post',
      data: params
    })
}


//通过id查询研学活动详情
export function getInfo(id){
    return request({
        url: `/mgrService/mgrResearch/queryResearchActivityById/${id}`,
        method: 'get',
        data: [id]
    })
}


//通过id删除研学活动
export function getDel(id){
    return request({
        url: `/mgrService/mgrResearch/deleteResearchActivityById/${id}`,
        method: 'get',
        data: [id]
    })
}


//编辑研学活动
export function getMod(params){
    return request({
        url: '/mgrService/mgrResearch/updateResearchActivityById',
        method: 'post',
        data: params
    })
}


//发布研学活动
export function getAdd(params){
    return request({
        url: '/mgrService/mgrResearch/addNewResearchActivity',
        method: 'post',
        data: params
    })
}

//发布研学资讯
export function getPublish(params){
    return request({
        url: '/mgrService/mgrResearch/createResearchInfo',
        method: 'post',
        data: params
    })
}

//分页查询研学资讯
export function getInfoPage(params) {
    return request({
      url: '/mgrService/mgrResearch/queryResearchInfoByPage',
      method: 'post',
      data: params
    })
}

//通过id软删除研学资讯
export function getDeleteInfo(id){
    return request({
        url: `/mgrService/mgrResearch/deleteResearchInfoById/${id}`,
        method: 'get',
        data: [id]
    })
}

//通过id查询研学资讯详情
export function getInfoById(id){
    return request({
        url: `/mgrService/mgrResearch/queryResearchInfoById/${id}`,
        method: 'get',
        data: [id]
    })
}

//通过id修改指定研学资讯
export function getModInfo(params){
    return request({
        url: '/mgrService/mgrResearch/updateResearchInfoById',
        method: 'post',
        data: params
    })
}

//新增政策介绍
export function createResearchPolicy(params){
    return request({
        url: '/mgrService/mgrResearch/createResearchPolicy',
        method: 'post',
        data: params
    })
}

//分页查询政策介绍
export function queryResearchPolicyByPage(params) {
    return request({
      url: '/mgrService/mgrResearch/queryResearchPolicyByPage',
      method: 'post',
      data: params
    })
}

//删除政策介绍
export function deleteResearchPolicyById(id){
    return request({
        url: `/mgrService/mgrResearch/deleteResearchPolicyById/${id}`,
        method: 'get',
        data: [id]
    })
}

//通过id查询政策介绍详情
export function queryResearchPolicyById(id){
    return request({
        url: `/mgrService/mgrResearch/queryResearchPolicyById/${id}`,
        method: 'get',
        data: [id]
    })
}

//通过id修改指定政策介绍
export function updateResearchPolicyById(params){
    return request({
        url: '/mgrService/mgrResearch/updateResearchPolicyById',
        method: 'post',
        data: params
    })
}
